package net.beyondts.example.mplug.beans;

import org.springframework.stereotype.Component;

/**
 * Created by zhaocw on 2019-1-18.
 *
 * @author zhaocw
 */
@Component
public class SomeBean {
    private String name;
    private int age;

    public SomeBean() {
        tom();
    }

    public void tom() {
        this.name = "Tom";
        this.age = 18;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
